home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0059.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  717 b   |  14 lines

  1. For breakout, try the GetPoint or whatever to test the colorof the area
  2. next to the ball. Then make it so each cube has a border the same color
  3. as the background screen. Floodfill the cube that was hit with the
  4. background color, and it disapears! Then invert the velocity of the ball.
  5. When checking the color, different colors could do different things, and
  6. other special data could be kept in a 2d array, corresponding to the width
  7. and height of the cubes, ie array[2][5] with 16 by 8 pixel cubes would be
  8. at screen location (2*16)+0 to 16, (5*8)+0 to 8.  only check about 8 areas
  9. around the ball with getpoint, as it will slow the game down! Or, if you
  10. are using the Turbo ext, use the fast zones.
  11.                             -Jedon 
  12.  
  13.  
  14.